const { ccclass, property } = cc._decorator;

@ccclass
export default class Test2 extends cc.Component {
    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = "hello";

    indexedDB: number = 0;

    start() {
        this.indexedDB = 0;
    }

    btnTest2() {
        console.log("btnTest2", this);
        this.indexedDB++;
        if (this.indexedDB >= 3) {
            this.node.active = false;
        }
    }
}
